package five;

import java.util.Scanner;

public class TextModifier {
	private static Scanner scn;

	public static void main(String[] args) {
		String s;
		scn = new Scanner(System.in);
		s = scn.nextLine();
		for (int i = 0; i < s.length(); i++) {
			if (s.charAt(i) == '+' || s.charAt(i) == '-') {
				String l = s.substring(i);
				System.out.print(l + l);
			}
			else {
				System.out.print(s.charAt(i));
			}
			
			
		}
		
	}


}
